import request from '@/utils/request'


export function listAuto(query) {
  return request({
    url: '/auto/list',
    method: 'get',
    params: query
  })
}
export function vuelistAuto(query) {
  return request({
    url: '/auto/vuelist',
    method: 'get',
    params: query
  })
}

export function autoAdd(data) {
  return request({
    url: '/auto/add',
    method: 'post',
    data: data
  })
}
export function vueautoAdd(data) {
  return request({
    url: '/auto/vueadd',
    method: 'post',
    data: data
  })
}
export function tobuild(data) {
  return request({
    url: '/auto/tobuild',
    method: 'post',
    data: data
  })
}
export function gotoPackage(data) {
  return request({
    url: '/auto/topackage',
    method: 'post',
    data: data
  })
}
export function toupload(data) {
  return request({
    url: '/auto/toupload',
    method: 'post',
    data: data
  })
}
export function restart(data) {
  return request({
    url: '/auto/restart',
    method: 'post',
    data: data
  })
}
export function deleteDate(data) {
  return request({
    url: '/auto/deleteDate',
    method: 'post',
    data: data
  })
}
export function vuedeleteDate(data) {
  return request({
    url: '/auto/vuedeleteDate',
    method: 'post',
    data: data
  })
}
export function submitBatch(batchId) {
  return request({
    url: '/batch/batch/submitBatch/' + batchId,
    method: 'get'
  })
}
